# Copyright 2005-2008, David Beal
# All rights reserved.
#
# Makefile for magneticle.
#
# Written by David Beal <dbeal@davidbeal.net>

CXXFLAGS+=-Wall
CXXFLAGS+=-pedantic
CXXFLAGS+=-Wimplicit
CXXFLAGS+=-Wredundant-decls
CXXFLAGS+=-Wno-unused
CXXFLAGS+=-Werror
CXXFLAGS+=-O2

magneticle.ldlibs+=-lm
magneticle.ldlibs+=-lglut

magneticle:	magneticle.o
	$(CXX) $($@.ldflags) -o $@ $^ $($@.ldlibs)

clean:
	rm -f magneticle *.[ios]


